<link rel="stylesheet" href="<?php echo base_url(); ?>public/css/customadmin.css" >
<div class="row">
	<div class="col-md-12">
		<div class="page-header">
		<h1>Add New User</h1>
	</div>	
	<?php echo form_open_multipart("admin/addUser",'class="form-horizontal"');?>
		<div class="form-group no_margin_button">
			<div class="col-md-12">
				<table >
					<tr>
						<td width="150" class="alignR"><label for="firstName" class="control-label">First Name <span class="red bold">*</span></label></td>
						<td>							
							<input style="min-width:250px;" type="text" name="fName" class="form-control  input-sm minWidth250" placeholder="Enter First Name"/>							
						</td>	
						<td><span class="red bold"><?php echo form_error('fName'); ?></span></td>					
					</tr>
					</tr><tr><td>&nbsp;</td></tr>					
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Last Name <span class="red bold">*</span></label></td>
						<td>
							<input type="text" name="lName" class="form-control  input-sm minWidth250" placeholder="Enter Last Name"/>							
						</td>	
						<td><span class="red bold"><?php echo form_error('lName'); ?></span></td>					
					</tr>
					</tr><tr><td>&nbsp;</td></tr>	
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Email <span class="red bold">*</span></label></td>
						<td>
							<input type="Email" name="email" class="form-control  input-sm minWidth250" placeholder="Enter Email"/>
						</td>
						<td><span class="red bold"><?php echo form_error('email'); ?></span></td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>	
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Phone <span class="red bold">*</span></label></td>
						<td>
							<input type="text" name="phone" class="form-control  input-sm minWidth250" placeholder="Enter Phone Number"/>
						</td>
						<td><span class="red bold"><?php echo form_error('phone'); ?></span></td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">User Name <span class="red bold">*</span></label></td>
						<td>
							<input type="text" name="username" class="form-control  input-sm minWidth250" placeholder="Enter User Name"/>
						</td>	
						<td><span class="red bold"><?php echo form_error('username'); ?></span></td>					
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Password <span class="red bold">*</span></label></td>
						<td>
							<input type="Password" name="password" class="form-control  input-sm minWidth250" placeholder="Enter Password"/>
						</td>	
						<td><span class="red bold"><?php echo form_error('password'); ?></span></td>					
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Confirm Password <span class="red bold">*</span></label></td>
						<td>
							<input type="Password" name="conpassword" class="form-control  input-sm minWidth250" placeholder="Enter Password"/>
						</td>	
						<td><span class="red bold"><?php echo form_error('conpassword'); ?></span></td>					
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Gender <span class="red bold"></span></label></td>
						<td >
                            <select name="cbogender"  class="form-control  input-sm minWidth250">                                 	
                                <option value='1'>Male</option>
                                <option value='2'>Female</option>
							 </select>															
						</td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>	
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">User Role <span class="red bold"></span></label></td>
						<td >
                            <select name="cborole"  class="form-control  input-sm minWidth250">                                 	
                                <?php if(  is_array($userrole) && count($userrole) ) {?>
												
                                    <?php foreach($userrole as $loop){ ?>
                                    	<option value="<?= $loop->roleid;?>"> <?= $loop->role;?> </option> 
									<?php
                                        }
                                    }
                                ?>
							 </select>															
						</td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Country <span class="red bold"></span></label></td>
						<td >
							<select name="cbocountry"  class="form-control  input-sm minWidth250">                                 	
                                <?php if(  is_array($country) && count($country) ) {?>
												
                                    <?php foreach($country as $loop){ ?>
                                    	<option value="<?= $loop->countryid;?>"> <?= $loop->country_name;?> </option> 
									<?php
                                        }
                                    }
                                ?>
							 </select>
						</td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr class="top10px">
						<td width="100" class="alignR"><label for="firstName" class="control-label ">Status <span class="red bold"></span></label></td>
						<td >
                            <select name="cbostatus"  class="form-control  input-sm minWidth250">                                 	
                                <option value='1'>Approve</option>
                                <option value='0'>Pending</option>
							 </select>															
						</td>						
					</tr>
					</tr><tr><td>&nbsp;</td></tr>
					<tr>	
						<td></td>
						<td>
							<input type="submit" name="btnSave" value="Save" class="btn btn-info btnSaveUser"/>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div class="form-group no_margin_button">
		    <div class="col-sm-12">
		    				   
		   </div>     
		</div>	
		<?php echo form_close(); ?>		
	</div>
</div>